<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>薰衣草登录</title>
    <style>
        :root {
            --lavender: #E6E6FA;
            --purple: #9370DB;
            --lilac: #C8A2C8;
        }
        
        body {
            margin: 0;
            height: 100vh;
            background: linear-gradient(to right, #F5F5FF, #F0E6FF);
            font-family: 'Arial', sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
        }
        
        .lavender-box {
            width: 350px;
            padding: 40px;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 20px;
            box-shadow: 0 15px 35px rgba(147, 112, 219, 0.2);
            position: relative;
            z-index: 1;
        }
        
        .lavender-box::before {
            content: '';
            position: absolute;
            top: -10px;
            left: -10px;
            right: -10px;
            bottom: -10px;
            background: linear-gradient(45deg, var(--lavender), var(--lilac), var(--purple));
            z-index: -1;
            border-radius: 25px;
            opacity: 0.3;
            animation: gradientBG 15s ease infinite;
            background-size: 400% 400%;
        }
        
        @keyframes gradientBG {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        
        h2 {
            color: var(--purple);
            text-align: center;
            margin-bottom: 30px;
            font-weight: 600;
        }
        
        .input-container {
            position: relative;
            margin-bottom: 30px;
        }
        
        input {
            box-sizing: border-box;
            width: 100%;
            padding: 15px 20px;
            background: rgba(255, 255, 255, 0.8);
            border: 2px solid var(--lavender);
            border-radius: 8px;
            color: #333;
            font-size: 16px;
            transition: all 0.3s;
        }
        
        input:focus {
            outline: none;
            border-color: var(--purple);
            background: white;
        }
        
        label {
            position: absolute;
            left: 20px;
            top: 15px;
            color: var(--lilac);
            transition: all 0.3s;
            pointer-events: none;
        }
        
        input:focus ~ label,
        input:valid ~ label {
            top: -10px;
            left: 15px;
            font-size: 12px;
            background: white;
            padding: 0 5px;
            color: var(--purple);
        }
        
        .lavender-btn {
            width: 100%;
            padding: 15px;
            background: var(--purple);
            border: none;
            border-radius: 8px;
            color: white;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .lavender-btn:hover {
            background: var(--lilac);
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(147, 112, 219, 0.3);
        }
        
        .flower {
            position: absolute;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="%23E6E6FA" opacity="0.5"/></svg>') no-repeat;
            background-size: contain;
            animation: float 8s ease-in-out infinite;
        }
        
        @keyframes float {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(-20px) rotate(10deg); }
        }
    </style>
</head>
<body>
    <div id="flowers"></div>
    
    <div class="lavender-box">
        <h2>薰衣草庄园</h2>
        <div class="input-container">
            <input type="text" id="lavender-user" required>
            <label for="lavender-user">用户名</label>
        </div>
        <div class="input-container">
            <input type="password" id="lavender-pass" required>
            <label for="lavender-pass">密码</label>
        </div>
        <button class="lavender-btn">进入庄园</button>
    </div>

    <script>
        // 创建漂浮的花朵
        const flowersContainer = document.getElementById('flowers');
        for (let i = 0; i < 8; i++) {
            const flower = document.createElement('div');
            flower.classList.add('flower');
            flower.style.width = `${30 + Math.random() * 50}px`;
            flower.style.height = flower.style.width;
            flower.style.left = `${Math.random() * 100}%`;
            flower.style.top = `${Math.random() * 100}%`;
            flower.style.opacity = 0.2 + Math.random() * 0.5;
            flower.style.animationDuration = `${5 + Math.random() * 10}s`;
            flower.style.animationDelay = `${Math.random() * 5}s`;
            flowersContainer.appendChild(flower);
        }
    </script>
</body>
</html>